#ifndef _DRAW_TREE_H_
#define _DRAW_TREE_H_

#include "stdio.h"

#define ONE_NODE_WIDTH 10
#define ONE_NODE_LINE_GAP 3
#define KEY_WIDTH 3

typedef struct draw_tree_node
{
	int key_num;
	int link_num;
	int *pkey;
	struct draw_tree_node **pnode;
}draw_tree_node;

typedef struct draw_tree
{
	draw_tree_node *root;
	int column_depth[100];
}draw_tree;

void draw_one_tree(FILE * file,draw_tree* tree,char* memory,int width,int height);
#endif
